import {
	request
} from '@/common/request.js'
// 微信登录
export function wxLogin(data) {
	return request({
		url: `/member/wxLogin`,
		method: 'post',
		data,
	})
}
// 获取用户信息
export function getMemberInfo(data) {
	return request({
		url: `/member/getMemberInfo`,
		method: 'post',
		data,
	})
}
// 绑定头像昵称
export function memberBdWx(data) {
	return request({
		url: `/member/memberBdWx`,
		method: 'post',
		data,
	})
}
//查询浏览记录
export function getBrowselList(data) {
	return request({
		url: `/browsel/getBrowselList`,
		method: 'post',
		data,
	})
}
//查询拨打记录
export function getDialList(data) {
	return request({
		url: `/dial/getDialList`,
		method: 'post',
		data,
	})
}
//楼层列表
export function selectFloor(data) {
	return request({
		url: `/rend/selectFloor`,
		method: 'post',
		data,
	})
}
//上传图片
export function upload(data) {
	return request({
		url: `/common/upload`,
		method: 'post',
		data,
	})
}
//编辑发布房源
export function saveRealestate(data) {
	return request({
		url: `/realestate/saveRealestate`,
		method: 'post',
		data,
	})
}
//  查询我的房源列表
export function getMyRealestate(data) {
	return request({
		url: `/realestate/getMyRealestate`,
		method: 'post',
		data,
	})
}
//刷新房源
export function refresh(data) {
	return request({
		url: `/realestate/refreshRealestate`,
		method: 'post',
		data,
	})
}
//房源详情
export function getEditRealestateInfo(data) {
	return request({
		url: `/realestate/getEditRealestateInfo`,
		method: 'post',
		data,
	})
}
//开启关闭房源
export function closureRealestate(data) {
	return request({
		url: `/realestate/closureRealestate`,
		method: 'post',
		data,
	})
}
//客服电话
export function getCustomerService(data) {
	return request({
		url: `/rend/getCustomerService`,
		method: 'post',
		data,
	})
}
// 查询我发布的需求
export function getMyWantList(data) {
	return request({
		url: `/want/getMyWantList`,
		method: 'post',
		data,
	})
}
// 发布/编辑/删除需求
export function saveWant(data) {
	return request({
		url: `/want/saveWant`,
		method: 'post',
		data,
	})
}
// 查询我发布需求详情
export function getWantInfos(data) {
	return request({
		url: `/want/getWantInfos`,
		method: 'post',
		data,
	})
}
// 开启/关闭需求
export function closureWant(data) {
	return request({
		url: `/want/closureWant`,
		method: 'post',
		data,
	})
}